home *** CD-ROM | disk | FTP | other *** search
- ' Program EX_0305.BAS
- ' Listing 5B - see documentation in TUTOR.SSS
-
- declare sub prime ()
-
- rem $include: 'SSSB.H'
-
- call prime
-
- for i = 1 to 3
- c = 15
- SETT 30 * (i - 1)
- TALLY 2, c
- SETT T + EX(2)
- do while T <= 30 * i
- if c > 0 then c = c - 1 else TALLY 1, 1
- TALLY 2, c
- SETT T + EX(2)
- loop
- next i
-
- title$ = " "
- SUMRY sadd(title$)
-
- sub prime
- INIQUE 0, 0, 2
- title$ = "Out of stock "
- INISTA 1, sadd(title$), 0, 0, 0!, 0!
- title$ = "Ave stock "
- INISTA 2, sadd(title$), 1, 0, 0!, 0!
- end sub
-